package com.test.vote.pojo;

import java.io.Serializable;

/**
 * battle
 * @author 
 */
public class Battle implements Serializable {
    /**
     * 对战id
     */
    private Integer battleId;

    /**
     * 比赛id
     */
    private Integer matchId;

    /**
     * a选手id
     */
    private Integer playeraId;

    /**
     * a选手歌曲
     */
    private String playeraSong;

    /**
     * a选手得票数
     */
    private Integer playeraTicket;

    /**
     * a选手评委得分
     */
    private Integer playeraScore;

    /**
     * a选手最终得分
     */
    private Integer playeraEndscore;

    /**
     * b选手id
     */
    private Integer playerbId;

    /**
     * b选手歌曲
     */
    private String playerbSong;

    /**
     * b选手得票数
     */
    private Integer playerbTicket;

    /**
     * b选手评委得分
     */
    private String playerbScore;

    /**
     * b选手最终得分
     */
    private String playerbEndscore;

    /**
     * 对战状态 0：未开始投票 1：正在投票 2：暂停投票 3：结束投票
     */
    private Integer battleStatus;

    private static final long serialVersionUID = 1L;

    public Integer getBattleId() {
        return battleId;
    }

    public void setBattleId(Integer battleId) {
        this.battleId = battleId;
    }

    public Integer getMatchId() {
        return matchId;
    }

    public void setMatchId(Integer matchId) {
        this.matchId = matchId;
    }

    public Integer getPlayeraId() {
        return playeraId;
    }

    public void setPlayeraId(Integer playeraId) {
        this.playeraId = playeraId;
    }

    public String getPlayeraSong() {
        return playeraSong;
    }

    public void setPlayeraSong(String playeraSong) {
        this.playeraSong = playeraSong;
    }

    public Integer getPlayeraTicket() {
        return playeraTicket;
    }

    public void setPlayeraTicket(Integer playeraTicket) {
        this.playeraTicket = playeraTicket;
    }

    public Integer getPlayeraScore() {
        return playeraScore;
    }

    public void setPlayeraScore(Integer playeraScore) {
        this.playeraScore = playeraScore;
    }

    public Integer getPlayeraEndscore() {
        return playeraEndscore;
    }

    public void setPlayeraEndscore(Integer playeraEndscore) {
        this.playeraEndscore = playeraEndscore;
    }

    public Integer getPlayerbId() {
        return playerbId;
    }

    public void setPlayerbId(Integer playerbId) {
        this.playerbId = playerbId;
    }

    public String getPlayerbSong() {
        return playerbSong;
    }

    public void setPlayerbSong(String playerbSong) {
        this.playerbSong = playerbSong;
    }

    public Integer getPlayerbTicket() {
        return playerbTicket;
    }

    public void setPlayerbTicket(Integer playerbTicket) {
        this.playerbTicket = playerbTicket;
    }

    public String getPlayerbScore() {
        return playerbScore;
    }

    public void setPlayerbScore(String playerbScore) {
        this.playerbScore = playerbScore;
    }

    public String getPlayerbEndscore() {
        return playerbEndscore;
    }

    public void setPlayerbEndscore(String playerbEndscore) {
        this.playerbEndscore = playerbEndscore;
    }

    public Integer getBattleStatus() {
        return battleStatus;
    }

    public void setBattleStatus(Integer battleStatus) {
        this.battleStatus = battleStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Battle other = (Battle) that;
        return (this.getBattleId() == null ? other.getBattleId() == null : this.getBattleId().equals(other.getBattleId()))
            && (this.getMatchId() == null ? other.getMatchId() == null : this.getMatchId().equals(other.getMatchId()))
            && (this.getPlayeraId() == null ? other.getPlayeraId() == null : this.getPlayeraId().equals(other.getPlayeraId()))
            && (this.getPlayeraSong() == null ? other.getPlayeraSong() == null : this.getPlayeraSong().equals(other.getPlayeraSong()))
            && (this.getPlayeraTicket() == null ? other.getPlayeraTicket() == null : this.getPlayeraTicket().equals(other.getPlayeraTicket()))
            && (this.getPlayeraScore() == null ? other.getPlayeraScore() == null : this.getPlayeraScore().equals(other.getPlayeraScore()))
            && (this.getPlayeraEndscore() == null ? other.getPlayeraEndscore() == null : this.getPlayeraEndscore().equals(other.getPlayeraEndscore()))
            && (this.getPlayerbId() == null ? other.getPlayerbId() == null : this.getPlayerbId().equals(other.getPlayerbId()))
            && (this.getPlayerbSong() == null ? other.getPlayerbSong() == null : this.getPlayerbSong().equals(other.getPlayerbSong()))
            && (this.getPlayerbTicket() == null ? other.getPlayerbTicket() == null : this.getPlayerbTicket().equals(other.getPlayerbTicket()))
            && (this.getPlayerbScore() == null ? other.getPlayerbScore() == null : this.getPlayerbScore().equals(other.getPlayerbScore()))
            && (this.getPlayerbEndscore() == null ? other.getPlayerbEndscore() == null : this.getPlayerbEndscore().equals(other.getPlayerbEndscore()))
            && (this.getBattleStatus() == null ? other.getBattleStatus() == null : this.getBattleStatus().equals(other.getBattleStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBattleId() == null) ? 0 : getBattleId().hashCode());
        result = prime * result + ((getMatchId() == null) ? 0 : getMatchId().hashCode());
        result = prime * result + ((getPlayeraId() == null) ? 0 : getPlayeraId().hashCode());
        result = prime * result + ((getPlayeraSong() == null) ? 0 : getPlayeraSong().hashCode());
        result = prime * result + ((getPlayeraTicket() == null) ? 0 : getPlayeraTicket().hashCode());
        result = prime * result + ((getPlayeraScore() == null) ? 0 : getPlayeraScore().hashCode());
        result = prime * result + ((getPlayeraEndscore() == null) ? 0 : getPlayeraEndscore().hashCode());
        result = prime * result + ((getPlayerbId() == null) ? 0 : getPlayerbId().hashCode());
        result = prime * result + ((getPlayerbSong() == null) ? 0 : getPlayerbSong().hashCode());
        result = prime * result + ((getPlayerbTicket() == null) ? 0 : getPlayerbTicket().hashCode());
        result = prime * result + ((getPlayerbScore() == null) ? 0 : getPlayerbScore().hashCode());
        result = prime * result + ((getPlayerbEndscore() == null) ? 0 : getPlayerbEndscore().hashCode());
        result = prime * result + ((getBattleStatus() == null) ? 0 : getBattleStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", battleId=").append(battleId);
        sb.append(", matchId=").append(matchId);
        sb.append(", playeraId=").append(playeraId);
        sb.append(", playeraSong=").append(playeraSong);
        sb.append(", playeraTicket=").append(playeraTicket);
        sb.append(", playeraScore=").append(playeraScore);
        sb.append(", playeraEndscore=").append(playeraEndscore);
        sb.append(", playerbId=").append(playerbId);
        sb.append(", playerbSong=").append(playerbSong);
        sb.append(", playerbTicket=").append(playerbTicket);
        sb.append(", playerbScore=").append(playerbScore);
        sb.append(", playerbEndscore=").append(playerbEndscore);
        sb.append(", battleStatus=").append(battleStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}